package com.hrm;

import com.hrm.service.UserInfService;
import com.hrm.utils.ExcelToHtml;
import com.hrm.utils.PPTtoHtml;
import com.hrm.utils.WordToHtml;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import java.io.IOException;

public class test2 {
    @Autowired
    UserInfService userInfService;

    //    @Test
//    public void b() throws IOException, TransformerException, ParserConfigurationException {
//        Office2Html.docx2Html("H:\\img2\\-1\\abc.docx", "H:\\img2\\-1\\b.html", "H:\\img2\\-1\\");
//    }
    // ppt
    @Test
    public void a() throws ParserConfigurationException, TransformerException, IOException {
//        PPTtoHtml.pptToHtml("H:/img2/-1/", "pp.ppt");
    }

    @Test
    public void c() throws Exception {
        ExcelToHtml.excelToHtml("H:/img2/-1/", "成绩.xls");
    }


    // doc
    @Test
    public void b() throws ParserConfigurationException, TransformerException, IOException {
//        WordToHtml.wordToHtml("H:/img2/-1/", "abc.doc");
    }
}
